//
//  CollectDViewController.m
//  Journey
//
//  Created by dllo on 16/6/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CollectDViewController.h"

@interface CollectDViewController ()

@end

@implementation CollectDViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationController.navigationBarHidden = NO;
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor redColor];
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",self.string]]]];
    //是否自动缩放以适应屏幕
    [webView setScalesPageToFit:YES];
    
    
    //   NSLog(@"%@",self.HotString);
    [self.view addSubview:webView];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"return"] style:UIBarButtonItemStylePlain target:self action:@selector(leftButtonAction)];
    
    
    
    
    
    
    
    
}

-(void)leftButtonAction{
    
    
    if ([self.type isEqualToString:@"111"]) {
        [self.navigationController popViewControllerAnimated:YES];
        
    }
      
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
